cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(Viewer)

#SET(CMAKE_CXX_COMPILER g++)
#FIND_PACKAGE(OpenCV REQUIRED)
find_package(PCL 1.5 REQUIRED)
find_package(VTK)
include(${VTK_USE_FILE})

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
SET(Viewer_SOURCES main.cpp)
add_executable (Viewer ${Viewer_SOURCES} ${Viewer_HEADERS_MOC})
target_link_libraries (Viewer ${PCL_LIBRARIES})
#target_link_libraries (Viewer ${PCL_LIBRARIES} ${QT_LIBRARIES} QVTK vtkHybrid)
